import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
import Article from './components/Article'
import Element from 'element-ui'

Vue.use(Element);
Vue.use(VueRouter)

// router
const router = new VueRouter({
    routes: [
        { path: '/', component: App },
        { path: '/articles/:index', component: Article },
    ]
})

/* eslint-disable no-new */
const app = new Vue({
  router,
}).$mount("#root");
